using DMS.DAOs.NH.ConfOrm;
using NHibernate;
using NHibernate.Cfg;

namespace DMS.DAOs.NH.Castle
{
    public class SessionFactoryProvider
    {
        private readonly Configuration configuration;

        public SessionFactoryProvider()
        {
            configuration = Config.GetConfiguration();
        }

        public ISessionFactory BuildSessionFactory()
        {
            return configuration.BuildSessionFactory();
        }
    }
}